package com.atguigu.srb.mybatis.pojo;

import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

/**
 * @author lsyandwh:
 * @create 2022-11-28 11:44
 */
@Data
public class Product {

    private Long id;
    private String name;
    private Integer price;

    @Version//使用乐观锁
    private Integer version;
}
